]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st/scroll-view: Change default hscrollbar-policy
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Nov 2023 13:41:07 +0000 (14:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 18 Nov 2023 18:00:43 +0000 (18:00 +0000)
It is a bit odd to have different default values for the vertical
and horizontal policy, but then that's what we almost always want in
practice: Automatic scrolling vertically, and no scrolling horizontally.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3020>

src/st/st-scroll-view.c

index e43d1cd1c05475c5681d67a8c13ff315bdbb1e0c..8c7636126e10696e9780f5e53016bbf5c7c1a86a 100644 (file)
@@ -943,7 +943,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
                        "Horizontal Scrollbar Policy",
                        "When the horizontal scrollbar is displayed",
                        ST_TYPE_POLICY_TYPE,
-                       ST_POLICY_AUTOMATIC,
+                       ST_POLICY_NEVER,
                        ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
 
   /**
@@ -1060,7 +1060,7 @@ st_scroll_view_init (StScrollView *self)
   StScrollViewPrivate *priv = st_scroll_view_get_instance_private (self);
   ClutterActor *scrollbar;
 
-  priv->hscrollbar_policy = ST_POLICY_AUTOMATIC;
+  priv->hscrollbar_policy = ST_POLICY_NEVER;
   priv->vscrollbar_policy = ST_POLICY_AUTOMATIC;
 
   priv->hadjustment = g_object_new (ST_TYPE_ADJUSTMENT,